import { patchLines } from "./util.ts"; import { assertEquals } from "./deps_test.ts"; Deno.test("patchLines()", async (t) => { await t.step("その1", () => { const template = [ "template start", "template template", "template end", ]; const lines = [ "何か", "aaa", "template template", " コメントが書いてあるかも", "template end modified", "", "本文とか", "おしまい", ]; assertEquals(patchLines(lines, template), [ "template start", "template template", "template end", "何か", "aaa", "template template", " コメントが書いてあるかも", "template end modified", "", "本文とか", "おしまい", ]); }); });